function foo(x) {
    return bar(x);
}

function bar(y) {
    return y + 1;
}

console.log(foo(1));
